<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<li class="block">
  <div class="block-login clearfix">
    <h3 class="title"><span><s:text name="common.column1.userLogin.title"/></span></h3>
    <div class="block-div"></div>
    <div class="block-div-arrow"></div>

<s:actionmessage/>
<s:actionerror/>

<s:if test="%{#session.name==null}">
    <form action="auth_login" method="post">
      <fieldset>
        <label for="log"><s:text name="common.column1.userLogin.user"/></label><br />
        <s:textfield theme="simple" name="name" size="20"/><br />
        <label for="pwd"><s:text name="common.column1.userLogin.password"/></label><br />
        <s:password theme="simple" name="password" size="20"/><br />
        <s:submit theme="simple" cssClass="button" key="common.button.login" name="forward"/>
        <label for="rememberme">
          <s:checkbox theme="simple" name="rememberMe" id="rememberme" value="forever"/><s:text name="common.column1.userLogin.rememberMe"/>
        </label><br />
      </fieldset>
    </form>

    <ul>
	  <s:url id="registerURL" action="auth_registerInput"/>
	  <li><s:a href="%{registerURL}"><s:text name="common.column1.userLogin.register" /></s:a></li>
      <li><s:a href="mailto:morgan0329@gmail.com"><s:text name="common.column1.userLogin.lostPassword" /></s:a></li>
    </ul>
</s:if>
    
<s:else>
  <s:text name="common.column1.userLogin.welcome"/><strong><s:property value="#session.displayName"/></strong>
  <s:url id="logoutURL" action="auth_logout"/>
  <s:a href="%{logoutURL}"><s:text name="common.column1.userLogin.logout" /></s:a>
</s:else>


  </div>
</li>